 
<div id="maincontent">
	<div id="maincontent_inner">
		<div id="sidebar">
			<div class="menu single">
				<ul>
					<li><a href="#">车辆基础信息库管理</a>
						<ul>
							<li><a href="<?php echo site_url("c=car_info&m=index"); ?>">车辆信息管理</a></li>
							<li><a href="<?php echo site_url("c=car_brand&m=index"); ?>">车辆品牌管理</a></li>
							<li class="current"><a href="<?php echo site_url("c=car_series&m=index"); ?>">车辆系列管理</a></li>
							<li><a href="<?php echo site_url("c=car_type&m=index"); ?>">车辆类型管理</a></li>
							<li><a href="<?php echo site_url("c=car_structure&m=index"); ?>">车辆结构管理</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
		<div id="content">
			<?php if($seriesid) {?>
			<div class="title">编辑车辆系列</div>
			<?php }else {?>
			<div class="title">新增车辆系列</div>
			<?php }?>
			<div class="infoarea">
				<form  id="editForm" name="editForm"  action="<?php echo site_url("c=car_series&m=$method&seriesid=$seriesid"); ?>" method="post" >
				<input type="hidden" name="serieseditsubmit" value="true" />
				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="aev">
					<tr>
						<th>系列名称:</th>
						<td><input type="text" class="half" id="seriesname" name="seriesname" value="<?php echo $seriesname; ?>"/><?php echo form_error('seriesname'); ?></td>
					</tr>
					<tr>
						<th>所属品牌:</th>
						<td>
							<select name="brandid"> 
								<option value="0" >-----无-----</option>
								 <?php 
								if($brandlist)
								{
									foreach($brandlist as $brand){ 
										if($brandid==$brand['brandid'])
										{
										?>
										<option selected value="<?php echo $brand['brandid']; ?>"><?php echo $brand['brandname']; ?></option>
										 <?php }else{ ?>
										 <option value="<?php echo $brand['brandid']; ?>"><?php echo $brand['brandname']; ?></option>
										<?php 
										}
									}
								}
								 ?>	
							</select>	
						</td>
					</tr>
					<tr>
						<th>所属类型:</th>
						<td>
							<select name="typeid"> 
								<option value="0" >-----无-----</option>
								 <?php 
							if($typelist)
							{
								foreach($typelist as $type){
									if($typeid==$type['typeid'])
									{
									?>
									<option selected value="<?php echo $type['typeid']; ?>"><?php echo $type['typename']; ?></option>
									 <?php }else{ ?>
									 <option value="<?php echo $type['typeid']; ?>"><?php echo $type['typename']; ?></option>
									<?php 
									}
								}
							}
							 ?>
							</select>	
						</td>
					</tr>
					<tr>
						<th>系列图片:</th>
						<td><input type="file" name="file" id="seriesimage" name="seriesimage" /><br/><img src="<?php echo base_url($seriesimage); ?>"></td>
					</tr>
					<tr>
						<th>系列简介:</th>
						<td><textarea id="area2" class="medium full" id="seriesinfo" name="seriesinfo"  name="area2"><?php echo $seriesinfo; ?></textarea></td>
					</tr>
				</table>
				<div class="box nav" style="margin-top:5px;margin-bottom:0;">
					&nbsp;<div style="float:right"><input type="submit" class="btn" value="确定"/><input type="submit" class="btn" value="返回"/></div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div>
 